package top.buyibuyi.course.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import top.buyibuyi.course.R;
import top.buyibuyi.course.pojo.ChooseCourse;

@FeignClient("course-curriculum")
@Component
public interface SelectTeacherCourseClient {

    @GetMapping("/course/selectTeacherCourse/{ajobn}")
    public R selectTeacherCourse(@PathVariable("ajobn") int ajobn);

    @PostMapping("/course/updateBrief")
    public R updateBrief(@RequestBody ChooseCourse chooseCourse);
}
